using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace GNetDesktop
{
    public class MDIForm :Form
    {
        public bool isClose = false;
        public C1.Win.C1Command.CommandClickEventArgs myLinks;

        protected override void OnClosed(EventArgs e)
        {
            isClose = true;
            if(myLinks!=null) myLinks.CallerLink.Command.Checked = false;
            base.OnClosed(e);
        }

        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // MDIForm
            // 
            this.ClientSize = new System.Drawing.Size(292, 273);
            this.Name = "MDIForm";
            this.Load += new System.EventHandler(this.MDIForm_Load);
            this.ResumeLayout(false);

        }

        private void MDIForm_Load(object sender, EventArgs e)
        {
        }

        protected override void OnMove(EventArgs e)
        {
            
            base.OnMove(e);
            if (this.MdiParent == null) return;
            GnetDesktop MDIform = (GnetDesktop)this.MdiParent;
            MDIform.frmCHD_Move(this, e);
        }

        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if (this.MdiParent == null) return;
            GnetDesktop MDIform = (GnetDesktop)this.MdiParent;
            MDIform.frmCHD_Move(this, e);
        }

        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);
            if (this.MdiParent == null) return;
            GnetDesktop MDIform = (GnetDesktop)this.MdiParent;
            MDIform.frmCHD_FormClosed(this, e);
        }
    }
}
